"""
def abc(b):
    abcd=['可口可乐','百事可乐','七喜汽水','1:1:1金龙鱼油','花生油']
    abcde=[A,B,C,D,E]
    return abcd[b] abcde[b]

"""
import time
import random
def j(a):
    aa=random.randint(1,20)
    if aa<=10:
        a=random.randint(1,35)
    if aa>10 and aa<16:
        a=random.randint(36,60)
    if aa>=16 and aa<20:
        a=random.randint(61,85)
    if aa>=20:
        a=random.randint(86,100)
    a=a/100
    return a
A=100
B=100
C=100
D=100
E=100
a=0
d=0
z=-1000000000000000000000
while True:
    if A>z:
        print(f"可口可乐:{int(A)}")
    if B>z:
        print(f"百事可乐:{int(B)}")
    if C>z:
        print(f"七喜汽水:{int(C)}")
    if D>z:
        print(f"1:1:1金龙鱼油:{int(D)}")
    if E>z:
        print(f"花生油:{int(E)}")
    print("")
    print("")
    print("")
    print("")
    c=j(a)
    while d<5:
        c=j(a)
        print(c)
        aaa=random.randint(1,3)
        if aaa==1:
            if d==0:
                A+=A*c
            if d==1:
                B+=B*c
            if d==2:
                C+=C*c
            if d==3:
                D+=D*c
            if d==4:
                E+=E*c
        if aaa>1:
            if d==0:
                A-=A*c
            if d==1:
                B-=B*c
            if d==2:
                C-=C*c
            if d==3:
                D-=D*c
            if d==4:
                E-=E*c
        d+=1
    d=0
    time.sleep(5)